<?php

	class ajax {
		

		function ajax() {
			global $admin;

			//if(empty($_SESSION["managerid"])) $admin->login();
		}
		
		function index() {
		}
		
		
		function suppliers() {
			global $db, $segment, $config;
			
			if(!empty($segment[1]) && $segment[1]=="delete") {
				$id = $segment[2];
				include_once("mod.suppliers.php");
				$c = new suppliers();
				$c->delete($id);
			}			
		}

		function customers() {
			global $db, $segment, $config;
			
			if(!empty($segment[1]) && $segment[1]=="delete") {
				$id = $segment[2];
				include_once("mod.customers.php");
				$c = new customers();
				$c->delete($id);
			}			
		}



}
?>